package com.neo.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.neo.springcloud.entities.CommonResult;

/**
 * @ClassName: CustomerBlockHandler
 * @Title: cloud2021
 * @Package: com.neo.springcloud.alibaba.myhandler
 * @Description:
 * @Author: Kisen
 * @Date: 2021/11/13 17:13
 */
public class CustomerBlockHandler {

    public static CommonResult handleException(BlockException exception) {
        return new CommonResult(4444, "按客户自定义，global handlerException------1");
    }

    public static CommonResult handleException2(BlockException exception) {
        return new CommonResult(4444, "按客户自定义，global handlerException------2");
    }
}
